<% cache("#{work.cache_key}-meta-#{hide_warnings?(work) ? 'nowarn' : 'showwarn'}-#{hide_freeform?(work)  ? 'nofreeform' : 'showfreeform'}") do %>
<h3 class="landmark">Work Header</h3>

<div class="wrapper">

  <dl class="work meta" role="complementary">
    <% Tag::VISIBLE.each do |type| %>
      <% tags = work.tag_groups[type] %>
        <% unless tags.blank? %>
          <dt class="<%= type.downcase %>">
            <% if type == "Warning" %>
              <%= link_to( tags.size == 1 ? type.constantize::NAME : type.constantize::NAME.pluralize, tos_faq_path(:anchor => "tags") ) %>:
            <% elsif type.constantize::NAME == ArchiveConfig.FREEFORM_CATEGORY_NAME %>
              <%= type.constantize::NAME %>:
            <% else %>
              <%= tags.size == 1 ? type.constantize::NAME : type.constantize::NAME.pluralize %>:
            <% end %>
          </dt>

          <dd class="<%= type.downcase %>">
            <ul>
              <% if (type == "Warning" && hide_warnings?(work)) || (type == "Freeform" && hide_freeform?(work)) %>
                <li id="work_<%= work.id %>_category_<%= type.downcase.pluralize %>"><%= show_hidden_tags_link(work, type.downcase.pluralize) %> </li>
             <% else %>
               <%= tag_link_list(tags) %>
             <% end %>
            </ul>
          </dd>
      <% end %>
    <% end %>

    <% unless @work.series.blank? %>
      <dt class="series">
        <%= ts("Series:") %>
      </dt>
      <dd class="series">
        <%= show_series_data(@work) %>
      </dd>
    <% end %>

    <% unless @work.approved_collections.empty? %>
      <dt class="collections">
        <%= ts('Collections:') %>
      </dt>
      <dd class="collections">
        <%= show_collections_data(@work) %>
      </dd>
    <% end %>

    <dt class="stats">
      <%= ts("Stats") %>:
    </dt>
    <dd class="stats">
<% end %><!-- end of cache -->

      <%= work_meta_list(@work, @chapter) %>
    </dd>
  </dl>
</div>
